// samsting : this file is auto create.

#include "Ess/2014-08-28/DescribeScalingInstancesResponse.h"

namespace aliyun { namespace Ess {

DescribeScalingInstancesResponse::DescribeScalingInstancesResponse() {
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetInstanceId(void) const {
  return InstanceId_;
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetScalingConfigurationId(void) const {
  return ScalingConfigurationId_;
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetScalingGroupId(void) const {
  return ScalingGroupId_;
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetHealthStatus(void) const {
  return HealthStatus_;
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetLifecycleState(void) const {
  return LifecycleState_;
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetCreationTime(void) const {
  return CreationTime_;
}

const string& DescribeScalingInstancesResponse::ScalingInstance::GetCreationType(void) const {
  return CreationType_;
}

const std::vector<DescribeScalingInstancesResponse::ScalingInstance>& DescribeScalingInstancesResponse::GetScalingInstances(void) const {
  return ScalingInstances_;
}

int DescribeScalingInstancesResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int DescribeScalingInstancesResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int DescribeScalingInstancesResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* DescribeScalingInstancesResponse::BaseKey(void) {
  return "DescribeScalingInstancesResponse";
}

void DescribeScalingInstancesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int ScalingInstances__length = 0;
  UnmarshallerInt(ScalingInstances__length, response_map, "DescribeScalingInstancesResponse.ScalingInstances.Length");
  if(ScalingInstances__length >= 0) {
    ScalingInstances_.resize(ScalingInstances__length);
    for(int i1 = 0; i1 < ScalingInstances__length; i1++) {
      UnmarshallerString(ScalingInstances_[i1].InstanceId_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].InstanceId");
      UnmarshallerString(ScalingInstances_[i1].ScalingConfigurationId_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].ScalingConfigurationId");
      UnmarshallerString(ScalingInstances_[i1].ScalingGroupId_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].ScalingGroupId");
      UnmarshallerString(ScalingInstances_[i1].HealthStatus_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].HealthStatus");
      UnmarshallerString(ScalingInstances_[i1].LifecycleState_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].LifecycleState");
      UnmarshallerString(ScalingInstances_[i1].CreationTime_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].CreationTime");
      UnmarshallerString(ScalingInstances_[i1].CreationType_, response_map, "DescribeScalingInstancesResponse.ScalingInstances["+string_ValueOfInt(i1)+"].CreationType");
    } // for(int i1 = 0; i1 < ScalingInstances__length; i1++) {
  } // if(ScalingInstances__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "DescribeScalingInstancesResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "DescribeScalingInstancesResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "DescribeScalingInstancesResponse.PageSize");
}


} } // namespace aliyun { namespace Ess {

// end of file 
